package cn.caipengbo.db;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.junit.Test;

/**
 * Created by Myth on 2/3/2017.
 */
public class CreateTable {
    @Test
    public void testCreateTable() {
        Configuration configuration =  new Configuration();
        configuration.configure();
        //创建SessionFactory
        SessionFactory sessionFactory =  configuration.buildSessionFactory();
        Session session = sessionFactory.openSession();

    }

}
